import { DataManager } from "./DataManager";

export abstract class DataBase {
    /**保存数据 */
    public SaveData(): void {
        DataManager.SetData(this.GetKey(), this);
    }

    /**获取键值 */
    protected GetKey(): string {
        return this.constructor.name;
    }
}


